<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>404错误！很抱歉，您要找的页面不存在</title>
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/nprogress.css">
    <link rel="stylesheet" type="text/css" href="/css/style.css">
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css">
    <link rel="apple-touch-icon-precomposed" href="images/icon.png">
    <link rel="shortcut icon" href="/images/favicon.jpg">
    <script src="/js/jquery-2.1.4.min.js"></script>
    <script src="/js/nprogress.js"></script>
    <script src="/js/jquery.lazyload.min.js"></script>
    <!--[if gte IE 9]>
    <script src="/js/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="/js/html5shiv.min.js" type="text/javascript"></script>
    <script src="/js/respond.min.js" type="text/javascript"></script>
    <script src="/js/selectivizr-min.js" type="text/javascript"></script>
    <![endif]-->
    <!--[if lt IE 9]>
    <script>window.location.href = 'upgrade-browser.html';</script>
    <![endif]-->
    <style type="text/css">
        .panel {
            padding: 80px 20px 0px;
            min-height: 400px;
            cursor: default;
        }

        .text-center {
            margin: 0 auto;
            text-align: center;
            border-radius: 10px;
            max-width: 900px;
            -moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, .3);
            -webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, .3);
            box-shadow: 0px 0px 5px rgba(0, 0, 0, .1);
        }


        /*img {*/
        /*    border: 0;*/
        /*    vertical-align: bottom;*/
        /*}*/

        h2 {
            padding-top: 20px;
            font-size: 20px;
        }

        .padding-big {
            padding: 20px;
        }

        .alert {
            border-radius: 5px;
            padding: 15px;
            border: solid 1px #ddd;
            background-color: #f5f5f5;
        }
    </style>
</head>
<body class="user-select">
<header class="header">
    <nav class="navbar navbar-default" id="navbar">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#header-navbar" aria-expanded="false">
                    <span class="sr-only"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <h1 class="logo hvr-bounce-in"><a href="/" title="社区(LY)">
                    <img width="40" src="/images/favicon.jpg" alt="社区(LY)"></a></h1>
            </div>
            <div class="collapse navbar-collapse" id="header-navbar">
                <form class="navbar-form visible-xs" action="/Search" method="post">
                    <div class="input-group">
                        <input type="text" name="keyword" class="form-control" placeholder="请输入关键字" maxlength="20"
                               autocomplete="off">
                        <span class="input-group-btn">
		                    <button class="btn btn-default btn-search" name="search" type="submit">搜索</button>
		                </span>
                    </div>
                </form>
                <ul class="nav navbar-nav navbar-right">
                    <li><a data-cont="社区(LY)" title="社区(LY)" href="/index.html">首页</a></li>
                    <li><a data-cont="广外新闻" title="广外新闻" href="/news">广外新闻</a></li>
                    <li><a data-cont="发布问题" title="发布问题"  class="publish" style="display: none;" href="/publish">发布问题</a></li>
                    <li><a data-cont="注册" title="注册" class="signin" href="/signin.html">注册</a></li>
                    <li><a data-cont="登录" title="登录" class="login" href="/login.html">登录</a></li>
                    <li class="dropdown user" style="display: none">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                           aria-expanded="false">
                            <span><img class="img-circle avatar_url" style="width: 20px;"></span>
                            <span class="username"></span>
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            <!--                            <li><a href="/personal/questions">我的问题</a></li>-->
                            <!--                            <li><a href="#">个人资料</a></li>-->
                            <li><a href="/logout">退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
</header>
<section class="container">
    <div class="panel">
        <div class="text-center">
            <h2>
                <stong>404错误！很抱歉，您要找的页面不存在</stong>
            </h2>
            <div class="padding-big"><a href="/" class="btn btn-primary">返回首页</a>
            </div>
            <div class="padding-big"><a href="#" title="社区(LY)">社区(LY)</a>
            </div>
        </div>
    </div>
</section>
<footer class="footer">
    <div class="container">
        <p> Copyright &copy; 2016.Company name All rights.
            <a href="/" target="_blank" title="社区(LY)">社区(LY)</a>
        </p>
    </div>
    <div id="gotop"><a class="gotop"></a></div>
</footer>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/jquery.ias.js"></script>
<script>
    $.ajax({
        url:"/authenticate_",
        type:"GET",
        contentType:"application/json;charset=utf-8",
        dataType:"json",
        success:function (response) {
            if(response.code===200){
                console.log(response);
                $(".login").hide();
                $(".signin").hide();
                $(".publish").show();
                $(".user").show();
                $(".avatar_url").attr("src",response.data.avatar_url);
                $(".username").text(response.data.username);
            }
        },
        error:function (request) {
            console.log(request);
        }
    });
</script>
</body>
</html>
